package cn.cqie.frame.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 谢一弘
 * @date 2021/10/5  16:11
 */
@Data
public class CourseVo {
    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "课程代码")
    private String code;

    @ApiModelProperty(value = "课程名称")
    private String name;

    @ApiModelProperty(value = "0:正常 1:禁用")
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
